package com.ruoyi.ufox.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 蔬菜机传感器数据对象 bis_device_data
 * 
 * @author ufoxs
 * @date 2022-08-16
 */
public class BisDeviceData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据ID */
    private Long dataId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 温度 */
    @Excel(name = "温度")
    private BigDecimal temperature;

    /** 湿度 */
    @Excel(name = "湿度")
    private BigDecimal humidity;

    /** 光强 */
    @Excel(name = "光强")
    private BigDecimal lightIntensity;

    /** 生长灯亮度 */
    @Excel(name = "生长灯亮度")
    private Integer lightValue;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectTime;

    public void setDataId(Long dataId) 
    {
        this.dataId = dataId;
    }

    public Long getDataId() 
    {
        return dataId;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setTemperature(BigDecimal temperature) 
    {
        this.temperature = temperature;
    }

    public BigDecimal getTemperature() 
    {
        return temperature;
    }
    public void setHumidity(BigDecimal humidity) 
    {
        this.humidity = humidity;
    }

    public BigDecimal getHumidity() 
    {
        return humidity;
    }
    public void setLightIntensity(BigDecimal lightIntensity) 
    {
        this.lightIntensity = lightIntensity;
    }

    public BigDecimal getLightIntensity() 
    {
        return lightIntensity;
    }
    public void setLightValue(Integer lightValue) 
    {
        this.lightValue = lightValue;
    }

    public Integer getLightValue() 
    {
        return lightValue;
    }
    public void setCollectTime(Date collectTime) 
    {
        this.collectTime = collectTime;
    }

    public Date getCollectTime() 
    {
        return collectTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dataId", getDataId())
            .append("deviceId", getDeviceId())
            .append("temperature", getTemperature())
            .append("humidity", getHumidity())
            .append("lightIntensity", getLightIntensity())
            .append("lightValue", getLightValue())
            .append("collectTime", getCollectTime())
            .toString();
    }
}
